import { createBrowserRouter } from "react-router-dom";
import Home from "../Page/Home";
import Search from "../Page/Search";

export const routes=createBrowserRouter(
    [
        {
            path:'/',
            lazy:async()=>{
                const {default:Home}=await import('../Page/Home')
                return {
                    element:<Home/>
                }
            }
        },
        {
            path:'/search',
            lazy:async()=>{
                const {default:Search} = await import('../Page/Search')
                return {
                    element:<Search/>
                }
            }
        }
    ]
)